package com.wtp.wallpaper.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtp.wallpaper.mapper.BannerPicMapper;
import com.wtp.wallpaper.pojo.entity.BannerPic;
import com.wtp.wallpaper.pojo.query.PageQuery;
import com.wtp.wallpaper.service.BannerPicService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerPicServiceImpl extends ServiceImpl<BannerPicMapper, BannerPic> implements BannerPicService {


    @Override
    public List<BannerPic> getHomeBannerList(PageQuery pageQuery) {
        return lambdaQuery().page(pageQuery.toMpPage("sort",true)).getRecords();
    }
}
